package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojos.WmNewsMaterial;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {

    /**
     * 批量添加素材-文章信息
     */
    void addNewsMaterialByBucket(@Param("materialIds") List<Integer> materialIds, @Param("nid") Integer nid, @Param("type") short type);
}
